package com.sunny.ynhz.adapter;

import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.sunny.ynhz.R;
import com.sunny.ynhz.bean.StandardBean;

import java.util.List;

/**
 * Created by huhuan123 on 2018/8/9.
 *
 * @describe TODO
 */

public class AreaDBAdapter extends BaseQuickAdapter<StandardBean.DateBean, BaseViewHolder> {
    public AreaDBAdapter(@Nullable List<StandardBean.DateBean> data) {
        super(R.layout.item_city_db, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, StandardBean.DateBean item) {
        helper.setText(R.id.tv_city,item.getADDVNM()).setText(R.id.tv_db_liv,item.getVILLAGE_PERCENT()+"");
        helper.setText(R.id.tv_db_number,item.getVILLAGE_PATROL()+"").setText(R.id.tv_totla_number,item.getVILLAGE_TOTAL()+"");

    }
}
